export const renderKeys = ['materialCode', 'materialName'];
export const renderKeys1 = ['categoryName'];

export const cateRenderKeys = ['categoryCode', 'categoryName'];
export const supplierRenderKeys = [
  'supplierCode',
  'supplierChinese',
  'isGroup',
  'supplierQualified',
];

export const formRenderConfig = {
  categoryName: {
    label: '品类名称',
    field: 'categoryName',
    width: '100px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入品类名称',
    },
  },
  categoryCode: {
    label: '品类编码',
    field: 'categoryCode',
    width: '200px',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入品类编码',
    },
  },
  materialCode: {
    label: '物料编码',
    width: '200px',
    field: 'materialCode',
    componentName: 'inputModal',
    componentProps: {
      title: '物料编码',
      type: 'materialCode',
      labelName: 'materialCode',
      valueName: 'materialCode',
    },
  },
  materialName: {
    label: '物料名称',
    field: 'materialName',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入物料名称',
    },
  },
  supplierCode: {
    label: '供应商编码',
    field: 'supplierCode',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入供应商编码',
    },
  },
  supplierChinese: {
    label: '供应商名称',
    field: 'supplierChinese',
    componentName: 'input',
    componentProps: {
      placeholder: '请输入供应商名称',
    },
  },
  isGroup: {
    label: '是否集团内',
    field: 'isGroup',
    componentName: 'dictSelect',
    componentProps: {
      dictType: 'whether',
      allowClear: true,
      placeholder: '请选择是否在集团内',
    },
  },
  supplierQualified: {
    label: '合格供应商',
    field: 'supplierQualified',
    componentName: 'dictSelect',
    componentProps: {
      dictType: 'whether',
      allowClear: true,
      placeholder: '请选择合格供应商',
    },
  },
};
